//
//  singleton.m
//  口袋
//
//  Created by tiankun on 15/5/30.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "singleton.h"
#import <AudioStreamer.h>
static AudioStreamer *single = nil;
@implementation singleton

//
//单例
//
+ (AudioStreamer *)shareManager
{
    
    //单例安全
    static dispatch_once_t once;
    dispatch_once(&once, ^{
        if (!single) {
            single = [[AudioStreamer alloc]init];
        }
    });
    
    return single;
}
@end
